import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:honeypotflutter/public/views/public_appBar.dart';
import 'package:honeypotflutter/public/views/public_tabBar_scrollView.dart';
import '../tickets_list_status/view.dart';
import 'logic.dart';

class TicketsListPage extends StatefulWidget {
  const TicketsListPage({Key? key}) : super(key: key);

  @override
  State<TicketsListPage> createState() => _TicketsListPageState();
}

class _TicketsListPageState extends State<TicketsListPage> {
  final TicketsListLogic logic = Get.put(TicketsListLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: HLAppBar(navigationTitle: "处理记录"),
      body: HLTabBarScrollView(
        mens: ["处理中", "已处理"],
        children: [
          TicketsListStatusPage(),
          TicketsListStatusPage(),
        ],
      ),
    );
  }

  @override
  void dispose() {
    Get.delete<TicketsListLogic>();
    super.dispose();
  }
}
